Documentation

imonit_client.php

This is a client-side library for using the i-mon-it services.

This library contains several static functions, which make remote calls to the i-mon-it server.In order to use the i-mon-it micro services you need to include this library and imonit_client_lib.php into every page and class you want to monitor with the i-mon-it service. In order to use the services you need to call the centrali-mon-it Saas micro services. Below you find the explanation how to do this:

  1. In order to track the start of your page you would need to call the static method imonit_client::startPage() and at the end of your page you need to call the corresponding static method: imonit::endPage(). In this documentation you find the required parameters in order to call these static methods. In order to track and morning tour your business logic you would would use the following static methods: for starting one of your methods in your business logicimoint_client::start() . and for ending a message in your business logic use: imoni_client::end()
Tags
see
imonit_client::start()
see
imonit_client::gettokenid

()

see
imonit_client::mid()
see
imonit_client::end()
see
imonit_client::startPage

()

see
imonit_client::lastentry()
see
imonit_client::midPage()
see
imonit_client::endPage()
see
imonit_client::__construct()
see
imonit_client::verifytoken()
see
imonit_client::updatetoken()
see
imonit_client::ua()
author

Stephan Haux

copyright

2025 i-mon-it

version
00.01.181

29.11.2025

name

i-mon-it Client

category

library @api

Table of Contents

Classes

imonit_client
This is the implementation of the client-side class to use the i-mon-it micro services.

Constants

checktoken  = \listener . '/checktoken.php'
URL for the verifytoken service
end  = \listener . 'end.php'
URL for the end service.
endpage  = \listener . '/endpage.php'
URL for the endpage service.
imonit_server  = 'server.i-mon-it.de'
itoken  = 'token'
This is the name of the session variable holding information about the token number used on the website to be monitored.
itokenfilename  = 'imonit.token'
Name of the local file holding the token information.
lastentry  = \listener . 'lastentry.php'
This is the microservice for retrieving the last id of a particular call.
listener  = 'http://' . \imonit_server . '/'
This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.
local_server  = '.i-mon-it.local'
This is the name of the i-mon-it website.
mid  = \listener . 'mid.php'
URL for the mid service.
midpage  = \listener . '/midpage.php'
URL for the midpage service.
start  = \listener . 'start.php'
this is the URL used to send the monitoring request for the start.
startpage  = \listener . 'startpage.php'
This is the URL for the startpage service.
ua  = \listener . 'UA.php'
This is the URk base for retrieving the Useragent id.

Constants

endpage

URL for the endpage service.

public string endpage = \listener . '/endpage.php'

URL for the endpage service

Tags
see
imonit_client::endpage

()

imonit_server

public mixed imonit_server = 'server.i-mon-it.de'

itoken

This is the name of the session variable holding information about the token number used on the website to be monitored.

public mixed itoken = 'token'

you

itokenfilename

Name of the local file holding the token information.

public string itokenfilename = 'imonit.token'

Name of the tokenfile holding the correct information.

lastentry

This is the microservice for retrieving the last id of a particular call.

public string lastentry = \listener . 'lastentry.php'

listener

This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.

public string listener = 'http://' . \imonit_server . '/'

Do not change the value of the constant.

URL used the fire monitoring and administrative requests to the i-mon-it service.

local_server

This is the name of the i-mon-it website.

public string local_server = '.i-mon-it.local'

name of the i-mon-it website

midpage

URL for the midpage service.

public string midpage = \listener . '/midpage.php'

URL for the endpage service

Tags
see
imonit_client::endpage

()

start

this is the URL used to send the monitoring request for the start.

public string start = \listener . 'start.php'

URL start Service

Tags
see
imonit_client::start

()

startpage

This is the URL for the startpage service.

public string startpage = \listener . 'startpage.php'

URL for the startpage service

Tags
see
imonit_client::startpage

()


        
On this page

Search results